/*
 * Copyright (c) 2017, dhl and/or its affiliates. All rights reserved.
 * dhl PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */
package com.xd.cloud.common;

/**
 * 整个应用通用常量类
 * 
 * @author dhl
 * @since V1.0
 * 
 */
public class Constants{
	// 分页大小
	public static final int PAGE_SIZE = 10;
	// 角色key值，不要修改这些值
	public static final String ROLE_ADMIN = "admin";
	public static final String ORG_ADMIN = "orgadmin";
	// 缓存用户
	public static final String USER = "user";
	
	public static final String USER_OK = "正常";
	public static final String USER_ERR = "禁用";
	
	public static final String DEV_STATUS2 = "维修";
//	public static final String DEV_STATUS3 = "停用";
//	public static final String DEV_STATUS4 = "欠费";
	
	public static final String SUCCESS_1 = "保存成功";
	public static final String SUCCESS_2 = "编辑成功";
	public static final String SUCCESS_3 = "删除成功";
	public static final String SUCCESS_4 = "发送成功";
	public static final String SUCCESS_5 = "注册成功";

	// 错误信息
	public static final String ERROR_1 = "角色已经存在";
	public static final String ERROR_2 = "机构已经存在";
	public static final String ERROR_3 = "用户已经存在";
	public static final String ERROR_4 = "没有找到该账号";
	public static final String ERROR_5 = "编辑失败";
	public static final String ERROR_6 = "用户已经被禁用";
//	public static final String ERROR_7 = "机构已经不存在";
	public static final String ERROR_7 = "登录用户名不对";
	public static final String ERROR_8 = "登陆密码不对";
	public static final String ERROR_10 = "已经不存在";
	public static final String ERROR_11 = "车辆已经存在";
	//字典类型
	public static final String FACTORY_TYPE = "factory_type";//设备所属的厂商类型
	public static final String DEVICE_TYPE = "device_type";  //设备类型
	public static final String INDUSTRY_TYPE = "industry_type";//所属行业
	public static final String VEHICLE_TYPE = "vehicle_type";  //车辆类型

	//系统默认角色
	public interface Role{
		//超管用户
		public static final Integer SUPER_USER= 1;
		//普通用户
		public static final Integer COMMON_USER = 2;
	}

	public interface Data{
		//默认数据权限
		public static final Integer AUTHORITY= 1;
	}
}